package com.dk.enums;

import java.io.Serializable;

public enum ResultEnum implements Serializable {
    SUCCESS(10000,"操作成功"),
    ERROR(9999,"操作失败"),
    ACCOUNT_UNKONWN(10002,"账号不存在"),
    ARGS_ISNULL(10005,"参数不能为空"),
    USER_NULL(20001,"用户名不存在"),
    PASS_ERROR(20002,"密码错误"),
    USER_ERROR(20003,"账户未审核异常"),
    USER_LOGINERROR(20004,"用户未登录"),
    USER_SUCCESS(20005,"用户已登录"),
    SELL_OVER(20006,"没货了");


    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ResultEnum() {
    }

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
